package models

import "time"

type CommentDiggModel struct {
	Model
	UserID       uint         `gorm:"uniqueIndex:idx_name" json:"userID"`    //用户ID
	UserModel    UserModel    `gorm:"foreignKey:UserID" json:"-"`            //外键
	CommentID    uint         `gorm:"uniqueIndex:idx_name" json:"commentID"` //评论ID
	CommentModel CommentModel `gorm:"foreignKey:CommentID" json:"-"`         //外键
	CreatedAt    time.Time    `json:"createdAt"`                             //点赞时间
}
